package com.pengheng.bean;

import lombok.Data;
import org.dromara.easyes.annotation.IndexId;

/**
 * 销售模拟数据
 * PUT /sales
 * {
 * "mappings": {
 * "properties": {
 * "location": {
 * "type": "keyword"
 * }
 * }
 * }
 * }
 * <p>
 * POST /sales/_bulk?refresh
 * {"index":{"_id":1}}
 * {"type": "t-shirt", "price": 139.0}
 * {"index":{"_id":2}}
 * {"type": "t-shirt", "price": 129.0}
 * {"index":{"_id":3}}
 * {"type": "t-shirt", "price": 119.0}
 * {"index":{"_id":4}}
 * {"type": "t-shirt", "price": 99.0}
 * {"index":{"_id":5}}
 * {"type": "t-shirt", "price": 39.0}
 * {"index":{"_id":6}}
 * {"type": "t-shirt", "price": 79.0}
 * {"index":{"_id":76}}
 * {"type": "hat", "price": 39.0}
 */
@Data
public class Sales {

    @IndexId
    private String id;

    private String type;

    private Double price;
}